<?php
class catalog extends Module {
	
	public function __construct(){
		parent::__construct(__CLASS__);
	}
	
	public function __default () {
		$oTypeCatalog = TypesController::getInstance()->getTypeByName ('catalog');
		$objectsController = ObjectsController::getInstance ();
		
		$sel = new Selection;
		$sel->addType ($oTypeCatalog);
		$sel->addFilter("parentid", 0);
		
		$aObjects = $objectsController->getObjectsList($sel->getList ());
		
		
		dump($aObjects);
		
	}
}
?>